Release 3.2  Copyright ã1993 by NeXT Computer, Inc.  All Rights Reserved.

3.2 Release Notes: 
Loginwindow

Customizing login and logout

In Release 3.2, the loginwindow program can be run with optional arguments. These arguments permit you to tailor what loginwindow does during login and logout. The arguments are:

·	LoginHook progname ÐSpecifies a program for loginwindow to run before a user logs in. You should specify the program progname with an absolute pathname (beginning with ª/º). The LoginHook program is run after the user enters the account name and password in the login window. The specified program won't be run if the default user (me) logs in without being asked for a password. 

·	LogoutHook progname ÐSimilar to LoginHook, except that the specified program is run after a user has logged out. Like LoginHook, the program progname should be specified by its full pathname. It isn't run when the default user (me) logs out.

·	HostName hostname ÐSpecifies a name to be displayed in the login window. If the name specified is localhost, then the computer's host name is displayed.

·	ImageFile filenameÐProvides an alternate file to use as the background of the login window. Normally, loginwindow displays the following file as the background for the login window:

/usr/lib/NextStep/loginwindow.app/LoginPanel.tiff 

If you provide a different image file, it should contain an image 462 pixels wide by 260 pixels high. Keep in mind that loginwindow draws the two white rectangles where the name and password are entered and will place these rectangles on top of the image. The rectangles are each 310 pixels wide and 22 pixels high. They appear at these locations: (124,102) and (124,136). Subject to these restrictions, the rest of the image can contain whatever you want. Keep in mind, however, that the image extends upwards from the bottom of the windowÐit doesn't center itself.

Loginwindow places the Power button and Restart button 19 pixels from the bottom of the window. The Power button is 19 pixels from the right side of the window, and the Restart button is 8 pixels to the left of the Power button. The actual sizes of the buttons depend on what language you're using. For example, they're larger if you're running NEXTSTEP in German than if you're running it in English. Note that these buttons are transparent, so the image you use to replace the background of the login window actually shows through the buttons. 

·	DefaultUser usernameÐDesignates the default user (if this option isn't used, me is the default user). If the default user has no password, loginwindow automatically logs that user in without requesting a password when the computer is booted.

·	PowerOffDisabled trueÐPrevents users from casually turning off the computer. This option can be useful if the system is providing a shared service (for example, a print server). If this option is set, then pressing the Power key has no effect while the login window is displayed. In addition, if a user presses the Power key while logged in, the user is logged out but the system is not turned off. To turn off the system when this argument is set, exit to the NMI mini-monitor and type halt to exit to the ROM monitor. From the ROM monitor, press the Power key, then type y.

You can set the options to loginwindow by setting dwrites as root. For example:

	PowerOffDisabled Yes
	DefaultUser kaya

Or you can edit the /etc/ttys file, like this:

1.	Log in as root. 

2.	Open /etc/ttys and locate the line beginning with ªconsoleº (although it may appear on two lines, this is actually a single entry containing no Return characters):

console 	/usr/lib/NextStep/loginwindow 	NeXT		 on secure 
window=/usr/lib/NextStep/WindowServer onoption="/usr/etc/getty std.9600"

3.	Modify the line to include arguments to loginwindow. This example disables the Power key and changes the default user to kaya. Note the required quotes around loginwindow and its arguments: 

console "/usr/lib/NextStep/loginwindow -PowerOffDisabled true -DefaultUser kaya" NeXT on secure window=/usr/lib/NextStep/WindowServer onoption="/usr/etc/getty std.9600"

4.	Reboot the system.